package com.itcs.rongyun.rongsdk; 

import com.alibaba.fastjson.JSON;

//文本消息
public class TxtMessage extends Message {

	private String content; 
	private Object extra;
	
	public Object getExtra() {
		return extra;
	}

	public void setExtra(Object extra) {
		this.extra = extra;
	}

	public TxtMessage(String content) {
		this.type = "RC:TxtMsg"; 
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public TxtMessage(String content,Object extra) {
		this(content); 
		this.extra = extra;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
}
